import bsddb, time
db = bsddb.btopen('/tmp/spam.db', 'r')
run = True
i = 0
while run:
    print db.last()
    time.sleep(1)
    i = i + 1
    if i > 60:
        run = False

